﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AuthorityAdd.aspx.cs" Inherits="Workflow.AuthorityAdd" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <link type="text/css" rel="stylesheet" href="css/pagination.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="Scripts/MyJquery.js"></script>
    <script type="text/javascript" src="Scripts/jquery.js"></script>
    <script type="text/javascript" src="Scripts/jquery.pagination.js"></script>
    <script type="text/javascript" src="Scripts/Pageination.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="table table-bordered table-hover definewidth m10">
            <tr>
                <td class="tableleft">姓名</td>
                <td><asp:DropDownList ID="ddlDisplayName" runat="server"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft">团队</td>
                <td><asp:DropDownList ID="ddlTeam" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlTeam_SelectedIndexChanged"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft">角色</td>
                <td><asp:DropDownList ID="ddlRole" runat="server"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft">工作流名称</td>
                <td><asp:DropDownList ID="ddlWorkName" runat="server"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft"></td>
                <td>
                    <asp:Button ID="btnCreate" CssClass="btn btn-primary" runat="server" Text="新建" OnClientClick="return Validate()" OnClick="btnCreate_Click"/>
                     <asp:Button ID="Button1" CssClass="btn btn-primary" runat="server" Text="刷新" OnClientClick="return Validate()" OnClick="Button1_Click"/>
                </td>
            </tr>
        </table>

        <table class="table table-bordered definewidth m10"><%-- --%>
            <thead>
                 <tr>
                     <th>姓名</th>
                     <th>工作流名称</th>
                     <th>组织单元</th>
                     <th>角色</th>
                     <th></th>
                 </tr>
            </thead>
         <tbody>
             <% for(int i=0;i<resultList.Count;i++) { %>
              <tr class="result">
                  <td><%=resultList[i].Displayname %></td>
                  <td><%=resultList[i].WorkName %></td>
                  <td><%=resultList[i].TeamName %></td>
                  <td><%=resultList[i].RoleName %></td>
                  <td><a class="Delete" href="Server.ashx?Type=Delete&Id=<%=resultList[i].Id %>"><img src="Images/delete.png" title="删除" /></a></td>
              </tr>
             <% }%>
         </tbody>
         </table>
    </div>
    </form>
</body>
</html>
